<div class="row">
  <div id="breadcrumb" class="col-md-12">
    <ol class="breadcrumb">
      <li><a ui-sref="layout.main">主页</a></li>
      <li><a ui-sref="layout.list.term">学期列表</a></li>
      <li><a href="javascript:;">学期详细信息</a></li>
    </ol>
  </div>
</div>
<div class="well" style="background-color: #FFFFFF;">
  <div class="row">
    <div class="col-xs-12">
      <h3 ng-bind="termItem.term_name"></h3>
    </div>
  </div>
  <hr />
  <div class="row">
    <div class="col-xs-12">
      <form class="form-horizontal">
        <div class="form-group">
          <label class="col-sm-2 control-label">编号</label>
          <div class="col-sm-10">
            <input type="text" ng-model="termItem.id" class="form-control" ng-disabled="true">
          </div>
        </div>
        <div class="form-group">
          <label class="col-sm-2 control-label">学期名称</label>
          <div class="col-sm-10">
            <input type="text" ng-model="termItem.term_name" class="form-control" ng-disabled="update">
          </div>
        </div>


        <div class="form-group">
          <label class="col-sm-2 control-label">学期开始时间</label>
          <div class="col-sm-10">
            <!-- <input type="text" ng-model="user.usr_birth" class="form-control" ng-disabled="update"> -->
            <p class="input-group">
              <input type="text"
                    class="form-control"
                    uib-datepicker-popup="yyyy-MM-dd"
                    ng-model="tempTermDate"
                    ng-disabled="update"
                    datepicker-options="dateOptions"
                    close-text="关闭"
                    clear-text="清除"
                    is-open="opened" />
              <span class="input-group-btn">
                <button type="button" class="btn btn-default" ng-click="opened = !opened"><i class="glyphicon glyphicon-calendar"></i></button>
              </span>
            </p>
          </div>
        </div>

        <div class="form-group">
          <label class="col-sm-2 control-label">学期描述</label>
          <div class="col-sm-10">
            <input type="text" ng-model="termItem.term_desc" class="form-control" ng-disabled="update">
          </div>
        </div>

        <div class="form-group">
          <div class="col-xs-2"></div>
          <div class="col-xs-2">
            <button class="btn btn-block btn-success" ng-click="modify()" ng-if="!update">确认修改</button>
          </div>
          <div class="col-xs-2">
            <input class="btn btn-block btn-danger" ng-click="toggleUpdate()" type="button" ng-if="!update" value="取消" />
          </div>
        </div>
      </form>
    </div>
  </div>
  <div class="row">
    <div class="col-xs-3" ng-if="user.usr_status != 3">
      <input class="btn btn-block btn-info" ng-click="toggleUpdate()" type="button" ng-if="update" value="点击修改" />
    </div>
  </div>
</div>
